Optimal. Leaf size=330 \[ \frac {f \left (\sqrt {e^2-4 d f}+e\right ) \tanh ^{-1}\left (\frac {2 a f-c x \left (e-\sqrt {e^2-4 d f}\right )}{\sqrt {2} \sqrt {a+c x^2} \sqrt {2 a f^2+c \left (-e \sqrt {e^2-4 d f}-2 d f+e^2\right )}}\right )}{\sqrt {2} d \sqrt {e^2-4 d f} \sqrt {2 a f^2+c \left (-e \sqrt {e^2-4 d f}-2 d f+e^2\right )}}-\frac {f \left (e-\sqrt {e^2-4 d f}\right ) \tanh ^{-1}\left (\frac {2 a f-c x \left (\sqrt {e^2-4 d f}+e\right )}{\sqrt {2} \sqrt {a+c x^2} \sqrt {2 a f^2+c \left (e \sqrt {e^2-4 d f}-2 d f+e^2\right )}}\right )}{\sqrt {2} d \sqrt {e^2-4 d f} \sqrt {2 a f^2+c \left (e \sqrt {e^2-4 d f}-2 d f+e^2\right )}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+c x^2}}{\sqrt {a}}\right )}{\sqrt {a} d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.82, antiderivative size = 330, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 7, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.259, Rules used = {6728, 266, 63, 208, 1034, 725, 206} \[ \frac {f \left (\sqrt {e^2-4 d f}+e\right ) \tanh ^{-1}\left (\frac {2 a f-c x \left (e-\sqrt {e^2-4 d f}\right )}{\sqrt {2} \sqrt {a+c x^2} \sqrt {2 a f^2+c \left (-e \sqrt {e^2-4 d f}-2 d f+e^2\right )}}\right )}{\sqrt {2} d \sqrt {e^2-4 d f} \sqrt {2 a f^2+c \left (-e \sqrt {e^2-4 d f}-2 d f+e^2\right )}}-\frac {f \left (e-\sqrt {e^2-4 d f}\right ) \tanh ^{-1}\left (\frac {2 a f-c x \left (\sqrt {e^2-4 d f}+e\right )}{\sqrt {2} \sqrt {a+c x^2} \sqrt {2 a f^2+c \left (e \sqrt {e^2-4 d f}-2 d f+e^2\right )}}\right )}{\sqrt {2} d \sqrt {e^2-4 d f} \sqrt {2 a f^2+c \left (e \sqrt {e^2-4 d f}-2 d f+e^2\right )}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+c x^2}}{\sqrt {a}}\right )}{\sqrt {a} d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 206
Rule 208
Rule 266
Rule 725
Rule 1034
Rule 6728
Rubi steps
\begin {align*} \int \frac {1}{x \sqrt {a+c x^2} \left (d+e x+f x^2\right )} \, dx &=\int \left (\frac {1}{d x \sqrt {a+c x^2}}+\frac {-e-f x}{d \sqrt {a+c x^2} \left (d+e x+f x^2\right )}\right ) \, dx\\ &=\frac {\int \frac {1}{x \sqrt {a+c x^2}} \, dx}{d}+\frac {\int \frac {-e-f x}{\sqrt {a+c x^2} \left (d+e x+f x^2\right )} \, dx}{d}\\ &=\frac {\operatorname {Subst}\left (\int \frac {1}{x \sqrt {a+c x}} \, dx,x,x^2\right )}{2 d}-\frac {\left (f \left (1-\frac {e}{\sqrt {e^2-4 d f}}\right )\right ) \int \frac {1}{\left (e+\sqrt {e^2-4 d f}+2 f x\right ) \sqrt {a+c x^2}} \, dx}{d}-\frac {\left (f \left (1+\frac {e}{\sqrt {e^2-4 d f}}\right )\right ) \int \frac {1}{\left (e-\sqrt {e^2-4 d f}+2 f x\right ) \sqrt {a+c x^2}} \, dx}{d}\\ &=\frac {\operatorname {Subst}\left (\int \frac {1}{-\frac {a}{c}+\frac {x^2}{c}} \, dx,x,\sqrt {a+c x^2}\right )}{c d}+\frac {\left (f \left (1-\frac {e}{\sqrt {e^2-4 d f}}\right )\right ) \operatorname {Subst}\left (\int \frac {1}{4 a f^2+c \left (e+\sqrt {e^2-4 d f}\right )^2-x^2} \, dx,x,\frac {2 a f-c \left (e+\sqrt {e^2-4 d f}\right ) x}{\sqrt {a+c x^2}}\right )}{d}+\frac {\left (f \left (1+\frac {e}{\sqrt {e^2-4 d f}}\right )\right ) \operatorname {Subst}\left (\int \frac {1}{4 a f^2+c \left (e-\sqrt {e^2-4 d f}\right )^2-x^2} \, dx,x,\frac {2 a f-c \left (e-\sqrt {e^2-4 d f}\right ) x}{\sqrt {a+c x^2}}\right )}{d}\\ &=\frac {f \left (1+\frac {e}{\sqrt {e^2-4 d f}}\right ) \tanh ^{-1}\left (\frac {2 a f-c \left (e-\sqrt {e^2-4 d f}\right ) x}{\sqrt {2} \sqrt {2 a f^2+c \left (e^2-2 d f-e \sqrt {e^2-4 d f}\right )} \sqrt {a+c x^2}}\right )}{\sqrt {2} d \sqrt {2 a f^2+c \left (e^2-2 d f-e \sqrt {e^2-4 d f}\right )}}+\frac {f \left (1-\frac {e}{\sqrt {e^2-4 d f}}\right ) \tanh ^{-1}\left (\frac {2 a f-c \left (e+\sqrt {e^2-4 d f}\right ) x}{\sqrt {2} \sqrt {2 a f^2+c \left (e^2-2 d f+e \sqrt {e^2-4 d f}\right )} \sqrt {a+c x^2}}\right )}{\sqrt {2} d \sqrt {2 a f^2+c \left (e^2-2 d f+e \sqrt {e^2-4 d f}\right )}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+c x^2}}{\sqrt {a}}\right )}{\sqrt {a} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.74, size = 319, normalized size = 0.97 \[ \frac {\frac {\sqrt {2} f \left (\sqrt {e^2-4 d f}+e\right ) \tanh ^{-1}\left (\frac {2 a f+c x \left (\sqrt {e^2-4 d f}-e\right )}{\sqrt {a+c x^2} \sqrt {4 a f^2-2 c \left (e \sqrt {e^2-4 d f}+2 d f-e^2\right )}}\right )}{\sqrt {e^2-4 d f} \sqrt {2 a f^2+c \left (-e \sqrt {e^2-4 d f}-2 d f+e^2\right )}}+\frac {\sqrt {2} f \left (\sqrt {e^2-4 d f}-e\right ) \tanh ^{-1}\left (\frac {2 a f-c x \left (\sqrt {e^2-4 d f}+e\right )}{\sqrt {a+c x^2} \sqrt {4 a f^2+2 c \left (e \sqrt {e^2-4 d f}-2 d f+e^2\right )}}\right )}{\sqrt {e^2-4 d f} \sqrt {2 a f^2+c \left (e \sqrt {e^2-4 d f}-2 d f+e^2\right )}}-\frac {2 \tanh ^{-1}\left (\frac {\sqrt {a+c x^2}}{\sqrt {a}}\right )}{\sqrt {a}}}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.02, size = 681, normalized size = 2.06 \[ -\frac {2 \sqrt {2}\, f \ln \left (\frac {-\frac {\left (e -\sqrt {-4 d f +e^{2}}\right ) \left (x -\frac {-e +\sqrt {-4 d f +e^{2}}}{2 f}\right ) c}{f}+\frac {2 a \,f^{2}-2 c d f +c \,e^{2}-\sqrt {-4 d f +e^{2}}\, c e}{f^{2}}+\frac {\sqrt {2}\, \sqrt {\frac {2 a \,f^{2}-2 c d f +c \,e^{2}-\sqrt {-4 d f +e^{2}}\, c e}{f^{2}}}\, \sqrt {4 \left (x -\frac {-e +\sqrt {-4 d f +e^{2}}}{2 f}\right )^{2} c -\frac {4 \left (e -\sqrt {-4 d f +e^{2}}\right ) \left (x -\frac {-e +\sqrt {-4 d f +e^{2}}}{2 f}\right ) c}{f}+\frac {4 a \,f^{2}-4 c d f +2 c \,e^{2}-2 \sqrt {-4 d f +e^{2}}\, c e}{f^{2}}}}{2}}{x -\frac {-e +\sqrt {-4 d f +e^{2}}}{2 f}}\right )}{\left (-e +\sqrt {-4 d f +e^{2}}\right ) \sqrt {-4 d f +e^{2}}\, \sqrt {\frac {2 a \,f^{2}-2 c d f +c \,e^{2}-\sqrt {-4 d f +e^{2}}\, c e}{f^{2}}}}-\frac {2 \sqrt {2}\, f \ln \left (\frac {-\frac {\left (e +\sqrt {-4 d f +e^{2}}\right ) \left (x +\frac {e +\sqrt {-4 d f +e^{2}}}{2 f}\right ) c}{f}+\frac {2 a \,f^{2}-2 c d f +c \,e^{2}+\sqrt {-4 d f +e^{2}}\, c e}{f^{2}}+\frac {\sqrt {2}\, \sqrt {\frac {2 a \,f^{2}-2 c d f +c \,e^{2}+\sqrt {-4 d f +e^{2}}\, c e}{f^{2}}}\, \sqrt {4 \left (x +\frac {e +\sqrt {-4 d f +e^{2}}}{2 f}\right )^{2} c -\frac {4 \left (e +\sqrt {-4 d f +e^{2}}\right ) \left (x +\frac {e +\sqrt {-4 d f +e^{2}}}{2 f}\right ) c}{f}+\frac {4 a \,f^{2}-4 c d f +2 c \,e^{2}+2 \sqrt {-4 d f +e^{2}}\, c e}{f^{2}}}}{2}}{x +\frac {e +\sqrt {-4 d f +e^{2}}}{2 f}}\right )}{\left (e +\sqrt {-4 d f +e^{2}}\right ) \sqrt {-4 d f +e^{2}}\, \sqrt {\frac {2 a \,f^{2}-2 c d f +c \,e^{2}+\sqrt {-4 d f +e^{2}}\, c e}{f^{2}}}}+\frac {4 f \ln \left (\frac {2 a +2 \sqrt {c \,x^{2}+a}\, \sqrt {a}}{x}\right )}{\left (-e +\sqrt {-4 d f +e^{2}}\right ) \left (e +\sqrt {-4 d f +e^{2}}\right ) \sqrt {a}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {c x^{2} + a} {\left (f x^{2} + e x + d\right )} x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {1}{x\,\sqrt {c\,x^2+a}\,\left (f\,x^2+e\,x+d\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{x \sqrt {a + c x^{2}} \left (d + e x + f x^{2}\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________